package ru.magicreader.client.model;

import com.google.gwt.core.client.JavaScriptObject;

public class Feed extends JavaScriptObject {
	
	protected Feed() {}
	
	public final static native Feed fromJsonString(String json) /*-{
		return eval('(' + json + ')');
	}-*/;
	
	public final native String getUrl() /*-{ return this.url; }-*/ ;
	
	public final native String getTitle() /*-{ return this.title; }-*/ ;
	
	public final native boolean isValid() /*-{ return this.valid; }-*/ ;
	
	public final native boolean isImportant() /*-{ return this.important; }-*/ ;
	
	public final native void setImportant(boolean b) /*-{ this.important = b; }-*/ ;
}
